home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / tnos / tnos100s / version.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-16  |  9.7 KB  |  481 lines

  1. /* version control information */
  2. #include "config.h"
  3. #include "mbuf.h"
  4. #include "usock.h"
  5. #include "session.h"
  6. #include "files.h"
  7. #ifdef ITT
  8. char Version[] = "ITT-TMNG v2.1";
  9. char shortversion[] = "TMNG2.1";
  10. char statversion[] = " TMNG v.2.1 [%2d] ";
  11. char MboxIdFwd[] = "[TMNG-2.1-THIM$]\n";
  12. char MboxId[] = "[TMNG-2.1-HIM$]\n";
  13. #else
  14. char Version[] = "KO4KS-TNOS v1.0b43";
  15. char shortversion[] = "TNOS1.00";
  16. char statversion[] = " TNOS v.1.00 [%2d] ";
  17. #if (defined(MAILBOX) || defined(MBFWD))
  18. char MboxIdFwd[] = "[TNOS-1.00-THIM$]\n";
  19. char MboxId[] = "[TNOS-1.00-HIM$]\n";
  20. #endif
  21. #endif
  22.  
  23. #if !defined(VERSION_ON_FILE) || defined(VERSION_FILE_BUILD)
  24. #ifdef TNOS_68K
  25. static char VIA[] = "standard serial I/O devices";
  26. #else
  27. static char VIA[] = "8250/16450/16550";
  28. #endif
  29. #endif
  30.  
  31. char Version2[] = "This version by Brian A. Lantz, KO4KS\n";
  32.  
  33. #if defined(TNOS) && !defined(ITT)
  34. #ifdef BETA
  35. char DFAR Tnosversion[] = "               T  N  O  S    -  Tampa Network Operating System\n                           beta-test version 1.01b1\n                             distribute and DIE!!\n\n";
  36. #else
  37. char DFAR Tnosversion[] = "               T  N  O  S    -  Tampa Network Operating System\n                             release version 1.00\n\n";
  38. #endif
  39. #endif
  40.  
  41. #ifdef ALLCMD
  42. int
  43. doversion(argc,argv,p)
  44. int argc;
  45. char *argv[];
  46. void *p;
  47. {
  48. int k;
  49.  
  50. #if defined(VERSION_ON_FILE) && !defined(VERSION_FILE_BUILD)
  51.     DisplayFile (VersionFile,Curproc->output);
  52. #else
  53. #ifdef VERSION_ON_FILE
  54. #define tprintf printf
  55. #define tputs(str) fputs(str, stdout)
  56. #endif
  57. #ifndef TNOS_68K
  58. #ifdef ITT
  59.     tprintf("%s, compiled %s %s, containing:\n" ,Version,__DATE__,__TIME__);
  60. #else
  61.     tprintf("TNOS %s, compiled %s %s, containing:\n" ,Version,__DATE__,__TIME__);
  62. #endif
  63. #else
  64.     tprintf("TNOS %s, containing:\n" ,Version);
  65. #endif
  66.     tputs("TCP Servers:");
  67.  
  68. #ifndef SERVERS
  69.     tputs("  None !\n");
  70. #endif /* ! SERVERS */
  71.  
  72. #ifdef SERVERS
  73.     tputs("  SMTP  FINGER  FTP");
  74.  
  75. #ifdef MAILBOX
  76.     tputs("  TELNET");
  77. #endif /* MAILBOX */
  78.  
  79. #ifdef ALLSERV
  80.     tputs("  TTYLINK  QUOTE  DISCARD  ECHO");
  81. #ifdef RLOGINSERV
  82.     tputs("  RLOGIN");
  83. #endif /* RLOGINSERV */
  84. #endif /* ALLSERV */
  85.  
  86.     tputs("\n            ");
  87. #ifdef ALLSERV
  88.     tputs("  TIME  DAYTIME");
  89. #endif /* ALLSERV */
  90.  
  91. #ifdef CALLSERVER
  92.     tputs("  CALLBOOK (CD-ROM)");
  93. #endif /* CALLSERVER */
  94.  
  95. #ifdef SAMCALLB
  96.     tputs("  CALLBOOK (SAM)");
  97. #endif /* SAMCALLB */
  98.  
  99. #ifdef CONVERS
  100.     tputs("  CONVERS");
  101. #endif /* CONVERS */
  102.  
  103. #ifdef NNTPS
  104.     tputs("  NNTP");
  105. #endif /* NNTPS */
  106.  
  107. #ifdef POP2SERVER
  108.     tputs("  POP2");
  109. #endif /* POP2SERVER */
  110.  
  111. #ifdef POP3SERVER
  112.     tputs("  POP3");
  113. #endif /* POP3SERVER */
  114.  
  115.     tputs("\n");
  116.  
  117. #endif /* SERVERS */
  118.  
  119.  
  120.     tputs("TCP Clients:  SMTP");
  121.  
  122. #ifdef ALLCMD
  123.     tputs("  FINGER");
  124. #endif
  125.  
  126. #ifdef ALLSESSIONS
  127.     tputs("  FTP  TELNET");
  128. #endif /* ALLSESSIONS */
  129.  
  130. #ifdef ALLSERV
  131.     tputs("  TTYLINK");
  132. #endif /* ALLSERV */
  133.  
  134.     tputs("  QUOTE  TIME  DAYTIME\n");
  135.  
  136. #if (defined(SAMCALLB) || defined(CALLCLI) || defined(CONVERS) || defined(NNTP) || defined(NNTPS) || defined(POP2CLIENT) || defined(POP3CLIENT) || defined(RLOGINCLI) || defined(RDATE))
  137.     tputs("            ");
  138.  
  139. #ifdef CALLCLI
  140.     tputs("  CALLBOOK (CD-ROM)");
  141. #endif /* CALLCLI */
  142.  
  143. #ifdef SAMCALLB
  144.     tputs("  CALLBOOK (SAM)");
  145. #endif /* SAMCALLB */
  146.  
  147. #ifdef CONVERS
  148.     tputs("  CONVERS");
  149. #endif /* CONVERS */
  150.  
  151. #if (defined(NNTP) || defined(NNTPS))
  152.     tputs("  NNTP");
  153. #endif /* NNTP || NNTPS */
  154.  
  155. #ifdef POP2CLIENT
  156.     tputs("  POP2");
  157. #endif /* POP2CLIENT */
  158.  
  159. #ifdef POP3CLIENT
  160.     tputs("  POP3");
  161. #endif /* POP3CLIENT */
  162.  
  163. #ifdef RLOGINCLI
  164.     tputs("  RLOGIN");
  165. #endif /* RLOGINCLI */
  166.  
  167.     tputs("\n");
  168. #endif /* CALLCLI || CONVERS || NNTP || NNTPS || POP2CLIENT || POP3CLIENT || RLOGINCLI || RDATE */
  169.  
  170.  
  171. #ifdef LZW
  172.     tputs("    with LZW compression for TCP sockets\n");
  173. #endif /* LZW */
  174.  
  175. #if (defined(TCPACCESS) || defined(IPACCESS))
  176.     tputs("    with ");
  177.  
  178. #ifdef TCPACCESS
  179.     tputs("TCP");
  180. #endif /* TCPACCESS */
  181.  
  182. #if (defined(TCPACCESS) && defined(IPACCESS))
  183.     tputs("/");
  184. #endif /* TCPACCESS && IPACCESS */
  185.  
  186. #ifdef IPACCESS
  187.     tputs("IP");
  188. #endif /* IPACCESS */
  189.  
  190.     tputs(" access controls\n");
  191. #endif /* TCPACCESS || IPACCESS */
  192.  
  193.  
  194.     tputs("UDP Servers:");
  195.  
  196. #if (!defined(DSERVER) && !defined(SERVERS) && !defined(BOOTP))
  197.     tputs("  None !");
  198. #endif /* ! DSERVER && ! SERVERS */
  199.  
  200. #ifdef DSERVER
  201.     tputs("  DOMAIN NAMESERVER");
  202. #endif /* DSERVER */
  203.  
  204. #ifdef SERVERS
  205.     tputs("  REMOTE");
  206. #endif /* SERVERS */
  207. #ifdef    BOOTP
  208.     tputs("  BOOTP");
  209. #endif
  210.     tputs("\n");
  211.  
  212.  
  213. #ifdef TIPMAIL
  214.     tputs("TIP Mailbox Server");
  215. #ifdef XMODEM
  216.     tputs(" with Xmodem file transfer");
  217. #endif /* XMODEM */
  218.     tputs("\n");
  219. #endif /* TIPMAIL */
  220.  
  221.  
  222. #ifdef MAILBOX
  223.     tputs("Full Service BBS");
  224.  
  225. #if (defined(RMAIL) || defined(EXPIRY) || defined(MAILFOR) || defined(MBFWD) || defined(RLINE) || defined(WPAGES))
  226.     tputs(" with:\n ");
  227. #endif /* RMAIL || EXPIRY || MAILFOR || MBFWD || RLINE || WPAGES */
  228.  
  229.     k = 0;
  230. #ifdef RMAIL
  231.     tputs("   Remote Mailer (RMAIL)  ");
  232.     ++k;
  233. #endif
  234. #ifdef EXPIRY
  235.     tputs("   Message and BID expiry ");
  236.     ++k;
  237. #endif /* EXPIRY */
  238.  
  239. #ifdef MAILFOR
  240.     tputs("   'Mail For' beaconing   ");
  241.     ++k;
  242. #endif /* MAILFOR */
  243.  
  244. #ifdef MBFWD
  245.     if (!(k % 3))
  246.         tputs("\n ");
  247.     tputs("   AX.25 mail forwarding  ");
  248.     ++k;
  249. #endif /* MBFWD */
  250.  
  251. #ifdef RLINE
  252.     if (!(k % 3))
  253.         tputs("\n ");
  254.     tputs("   'R:-line' compatibility");
  255.     ++k;
  256. #endif /* RLINE */
  257.  
  258. #ifdef WPAGES
  259.     if (!(k % 3))
  260.         tputs("\n ");
  261.     tputs("   'Pseudo-White Pages'   ");
  262. #endif
  263.     tputs("\n");
  264.  
  265. #endif /* MAILBOX */
  266.  
  267. #if (defined(CALLBOOK) || defined(AXIP) || defined(ENCAP))
  268.     tputs("Internet Services:");
  269.  
  270. #if defined(CALLBOOK)
  271.     tputs("  BBS Callbook Client");
  272. #endif /* CALLBOOK */
  273.  
  274. #ifdef AXIP
  275.     tputs("  AX.25 Digipeating (AXIP)");
  276. #endif /* AXIP */
  277.  
  278. #ifdef ENCAP
  279.     tputs("  IP Encapsulation");
  280. #endif /* ENCAP */
  281.  
  282.     tputs("\n");
  283. #endif /* CALLBOOK || AXIP || ENCAP */
  284.  
  285.     tputs("Assorted TNOS Features:\n");
  286.     k = 0;
  287. #ifdef CONVERS
  288.     tputs("     Expanded Conference bridge        ");
  289.     k++;
  290. #endif
  291. #ifdef REQSVR
  292.     tputs("     Remote Request Server             ");
  293.     k++;
  294. #endif
  295.     if (!(k % 2))
  296.         tputs("\n");
  297.     tputs("     ANSI Color Graphics               ");
  298.     k++;
  299. #ifdef SCREENSAVER
  300.     if (!(k % 2))
  301.         tputs("\n");
  302.     tputs("     Local screen saver                ");
  303.     k++;
  304. #endif
  305. #ifdef  TNOS
  306.     if (!(k % 2))
  307.         tputs("\n");
  308.     tputs("     Virtual Memory storage routines   ");
  309.     k++;
  310. #endif
  311. #ifdef TUTOR
  312.     if (!(k % 2))
  313.         tputs("\n");
  314.     tputs("     Information/News/Tutorial Services");
  315. #endif
  316.     tputs("\n");
  317.  
  318.  
  319. #ifdef HOPCHECK
  320.     tputs("Hopcheck IP path tracing\n");
  321. #endif /* HOPCHECK */
  322.  
  323. #ifdef RIP
  324.     tputs("RIP Routing Protocol\n");
  325. #endif /* RIP */
  326.  
  327. #ifdef RSPF
  328.     tputs("Radio Shortest Path First Protocol (RSPF)\n");
  329. #endif /* RSPF */
  330.  
  331. #ifdef RARP
  332.     tputs("Reverse Address Resolution Protocol (RARP)\n");
  333. #endif /* RARP */
  334.  
  335. #ifdef ASY
  336. #ifdef LINUX
  337.     tputs("Generic async (cua*) interface driver\n");
  338. #else
  339.     tprintf("Generic async (%s) interface driver\n", VIA);
  340. #endif
  341.  
  342. #if (defined(KISS) || defined(AX25) || defined(NRS))
  343.     tputs("Async interface drivers:");
  344.  
  345. #ifdef KISS
  346.     tputs("  KISS TNC");
  347. #endif /* KISS */
  348.  
  349. #ifdef AX25
  350.     tputs("  AX.25");
  351. #endif /* AX25 */
  352.  
  353. #ifdef NRS
  354.     tputs("  NET/ROM TNC");
  355. #endif /* NRS */
  356.  
  357.     tputs("\n");
  358. #endif /* KISS || AX25 || NRS */
  359.  
  360. #endif /* ASY */
  361.  
  362. #ifdef NETROM
  363.     tputs("NET/ROM network interface\n");
  364. #endif /* NETROM */
  365.  
  366. #if (defined(PPP) || defined(SLIP))
  367.     tputs("Async IP drivers:");
  368.  
  369. #ifdef PPP
  370.     tputs("  Point-to-Point (PPP)");
  371. #endif /* PPP */
  372.  
  373. #ifdef SLIP
  374.     tputs("  Serial Line (SLIP)");
  375. #endif /* SLIP */
  376.  
  377. #ifdef DIALER
  378.     tputs(" - with dialer code");
  379. #endif /* DIALER */
  380.     tputs("\n");
  381.  
  382. #ifdef VJCOMPRESS
  383.     tputs("      with Van Jacobson compression\n");
  384. #endif /* VJCOMPRESS */
  385.  
  386. #endif /* PPP || SLIP */
  387.  
  388. #ifdef PACKET
  389.     tputs("FTP Software's PACKET driver interface\n");
  390. #endif /* PACKET */
  391.  
  392. #ifdef APPLETALK
  393.     tputs("Appletalk interface for MacIntosh\n");
  394. #endif /* APPLETALK */
  395.  
  396. #ifdef ARCNET
  397.     tputs("ARCnet via PACKET driver\n");
  398. #endif /* ARCNET */
  399.  
  400. #ifdef DRSI
  401.     tputs("DRSI PCPA low-speed driver\n");
  402. #endif /* DRSI */
  403.  
  404. #ifdef EAGLE
  405.     tputs("Eagle card 8530 driver\n");
  406. #endif /* EAGLE */
  407.  
  408. #ifdef ETHER
  409.     tputs("Generic ethernet driver\n");
  410. #endif /* ETHER */
  411.  
  412. #ifdef HAPN
  413.     tputs("Hamilton Area Packet Network driver\n");
  414. #endif /* HAPN */
  415.  
  416. #ifdef HS
  417.     tputs("High speed (56 kbps) modem driver\n");
  418. #endif /* HS */
  419.  
  420. #ifdef PACKETWIN
  421.     tputs("Gracilis PackeTwin driver\n");
  422. #endif /* PACKETWIN */
  423.  
  424. #ifdef PC_EC
  425.     tputs("3-Com 3C501 Ethernet controller driver\n");
  426. #endif /* PC_EC */
  427.  
  428. #ifdef PC100
  429.     tputs("PAC-COM PC-100 driver\n");
  430. #endif /* PC100 */
  431.  
  432. #ifdef PI
  433.     tputs("PI SCC card with DMA driver (VE3IFB)\n");
  434. #endif /* PI */
  435.  
  436. #ifdef SCC
  437.     tputs("Generic SCC (8530) driver (PE1CHL)\n");
  438. #endif /* SCC */
  439.  
  440. #ifdef SLFP
  441.     tputs("SLFP via PACKET driver\n");
  442. #endif /* SLFP */
  443.     
  444. #ifdef TRACE
  445.     tputs("Hardware interface packet tracing code");
  446. #ifdef MONITOR
  447.     tputs(" - with user monitor mode");
  448. #endif
  449.     tputs("\n");
  450. #endif /* TRACE */
  451.  
  452. #ifdef STKTRACE
  453.     tputs("Stack tracing code\n");
  454. #endif /* STKTRACE */
  455.  
  456. #ifdef MULTITASK
  457.     tputs("Multitasking capability when shelling out to MS-DOS\n");
  458. #endif /* MULTITASK */
  459.  
  460. #ifdef XSPAWN
  461.     tputs("EMS/Disk swapping when shelling out to MS-DOS\n");
  462. #endif
  463. #ifdef LINUX
  464.     tputs("Linux modifications by Brandon S. Allbery\n");
  465. #endif
  466.  
  467. #endif
  468.  
  469. #if 0
  470. #if defined(VERSION_ON_FILE) && !defined(VERSION_FILE_BUILD)
  471.     tprintf("\n%d sockets, %d sessions",Nusock,Nsessions);
  472. #ifndef TNOS_68K
  473.     tprintf (", %d interrupt buffers of %d bytes",Nibufs,Ibufsize);
  474. #endif
  475.     tputs("\n");
  476. #endif
  477. #endif
  478.     return 0;
  479. }
  480. #endif /*ALLCMD*/
  481.